package com.minicloud.upms.role.controller;

import com.minicloud.upms.role.dao.UpmsRoleDao;
import com.minicloud.upms.role.entity.UpmsRoleEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping(value = "/role")
public class RoleController {

    @Resource
    private UpmsRoleDao upmsRoleDao;

    @GetMapping(value = "/queryRolesByUserId")
    public List<UpmsRoleEntity> test() {
        return upmsRoleDao.queryRolesByUserId(1);
    }
}
